<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script>
        function mOver(obj){
            obj.innerHTML="我进来了";
        }
        function mOut(obj){
            obj.innerHTML="我出去了";
        }
        function displayDate(obj){
            obj.innerHTML=(new Date()).toString();
        }
    </script>
</head>
<body>
    <div onmouseover="mOver(this)" onmouseout="mOut(this)" >
        快进来
    </div>
    <div onclick="displayDate(this)" style="background-color:red;">点我</div>
</body>
</html>